package com.jztd.servone.invoice.controller;

import com.jztd.servone.invoice.po.InvoicePartyConfig;
import com.jztd.servone.invoice.service.InvoicePartyConfigService;
import com.jztd.platfrom.base.annotation.UnifiedResponseBody;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@UnifiedResponseBody
@RestController
@RequestMapping("/servone/invoice/party/config")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class InvoicePartyConfigController {
    private final InvoicePartyConfigService invoicePartyConfigService;
    /**查询发票开票方信息*/
    @GetMapping("/getInvoicePartyConfig")
    public InvoicePartyConfig getInvoicePartyConfig(@RequestParam String clientCode) {
        return invoicePartyConfigService.getInvoicePartyConfig(clientCode);
    }
}
